package com.gitee.dupe.authority.service;

import com.gitee.dolt.boot.service.SuperService;
import com.gitee.dupe.authority.entity.RoleResource;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author LYH
 * @since 2020-08-04
 */
public interface IRoleResourceService extends SuperService<RoleResource> {

    /**
     * 删除
     *
     * @param id
     * @return
     */
    boolean removeByRoleId(Long id);

    /**
     * 查找
     *
     * @param id
     * @return
     */
    List<RoleResource> findAllByRoleId(Long id);

    /**
     * 删除
     *
     * @param id
     * @param resourceIds
     * @return
     */
    boolean removeByRoleIdAndResourceIds(Long id, List<Long> resourceIds);
}
